package kubayaxi.video.service.base.common.enums;

import lombok.Getter;

@Getter
public enum LikeStatusEnum {
    LIKE(30,"已喜欢"),
    NO_LIKE(31,"未喜欢");

    private Integer code;
    private String description;

    LikeStatusEnum(Integer code, String description) {
        this.code = code;
        this.description = description;
    }

    public static LikeStatusEnum getByCode(Integer code) {
        for (LikeStatusEnum value : LikeStatusEnum.values()) {
            if (value.getCode().equals(code)) return value;
        }
        return null;
    }
}
